package com.gpframework.common.pay.leshua.config;

import lombok.extern.slf4j.Slf4j;

/**
 * Description:
 * Author:Geno
 * Date:2018/5/24
 * Mail:geno@yeahka.com
 */
@Slf4j
public class MerchantConfig {
    // 正式
    public final static String AGENT_ID = "5035599";//代理商编号
    public final static String KEY = "37ED2EC795D34997BDA4740FC21CFF83";//私钥
    public final static String VERSION = "1.0";//版本号
    public final static String VERSION_TWO = "2.0";//版本号
    public final static String CHARSET = "UTF-8";//字符编码

    public final static String WX_PAY_CONFIG_URL = "http://pos.lepass.cn/api/wechat/wxpayconfig.do";//商户支付参数-新增
    public final static String WX_PAY_CONFIG_QUERY_URL = "http://pos.lepass.cn/api/wechat/wxpayconfig_qry.do";//商户支付参数-查询

    //新接口
    public final static String SAAS_UPLOAD_URL = "https://saas-mch.leshuazf.com/apiv2/picture/upload";//上传图片接口
    public final static String SAAS_REGISTER_URL = "https://saas-mch.leshuazf.com/apiv2/merchant/register";//商户进件接口
    public final static String SAAS_OPEN_URL = "https://saas-mch.leshuazf.com/apiv2/merchant/open";//商户开通业务接口
    public final static String FEE_QRY_URL = "https://saas-mch.leshuazf.com/apiv2/merchant/fee_qry";//商户费率查询接口
    public final static String SAAS_UPDATE_URL = "https://saas-mch.leshuazf.com/apiv2/merchant/update";//商户信息修改接口
    public final static String SAAS_INFOQRY_URL = "https://saas-mch.leshuazf.com/apiv2/merchant/info_qry";//商户信息查询接口
    public final static String AUDIT_QUERY_RUL = "https://saas-mch.leshuazf.com/apiv2/merchant/audit_qry";//审核状态查询
    public final static String WX_CONFIG_URL = "https://saas-mch.leshuazf.com/apiv2/wechat/wxpayconfig";//微信支付参数配置
    public final static String WX_CONFIG_QRY_URL = "https://saas-mch.leshuazf.com/apiv2/wechat/wxpayconfig_qry";//微信支付参数配置查询
    public static final String GET_URL = "https://saas-mch.leshuazf.com/apiv2/merchant/info_qry";//商户信息查询
    public static final String AREA_URL = "https://saas-mch.leshuazf.com/data/area";//地区信息查询接口
    public static final String SUBJECT_APPLY_URL = "https://saas-mch.leshuazf.com/apiv2/wechat/subject/apply";//微信子商户实名认证-申请
    public static final String SUBJECT_QUERY_URL = "https://saas-mch.leshuazf.com/apiv2/wechat/subject/query";//微信子商户实名认证-查询

    public static final String OPEN_REALTIME_SETTLE_URL = "https://saas-mch.leshuazf.com/apiv2/merchant/openRealtimeSettle";//商户交易清分方式修改
    public static final String WITHDRAWAL_METHOD_UPDATE_URL = "https://saas-mch.leshuazf.com/apiv2/merchant/update";//商户交易清分方式修改
    public static final String WITHDRAWAL_METHOD_INFO_QRY_URL = "https://saas-mch.leshuazf.com/apiv2/merchant/info_qry";//商户交易清分方式修改
    public static final String WITHDRAW_APPLY_URL = "https://saas-combine.leshuazf.com/open-api/merchant-withdraw/apply";//商户账户余额提现
    public static final String WITHDRAW_BALANCE_QUERY_URL = "https://saas-combine.leshuazf.com/open-api/merchant-withdraw/balance-query";//商户账户余额查询

    // 测试
    /*public final static String AGENT_ID = "10";//代理商编号
    public final static String KEY = "17B10781A8C5178870197906F71749D8";//私钥
    public final static String VERSION = "1.0";//版本号
    public final static String CHARSET = "UTF-8";//字符编码

    public final static String WX_PAY_CONFIG_URL = "http://pos.lepass.cn/api/wechat/wxpayconfig.do";//商户支付参数-新增
    public final static String WX_PAY_CONFIG_QUERY_URL = "http://pos.lepass.cn/api/wechat/wxpayconfig_qry.do";//商户支付参数-查询

    //新接口
    public final static String SAAS_UPLOAD_URL = "http://t-saas-mch.lepass.cn/apiv2/picture/upload";//上传图片接口
    public final static String SAAS_REGISTER_URL = "http://t-saas-mch.lepass.cn/apiv2/merchant/register";//商户进件接口
    public final static String SAAS_OPEN_URL = "http://t-saas-mch.lepass.cn/apiv2/merchant/open";//商户开通业务接口
    public final static String SAAS_UPDATE_URL = "http://t-saas-mch.lepass.cn/apiv2/merchant/update";//商户信息修改接口
    public final static String SAAS_INFOQRY_URL = "http://t-saas-mch.lepass.cn/apiv2/merchant/info_qry";//商户信息查询接口
    public final static String AUDIT_QUERY_RUL = "http://t-saas-mch.lepass.cn/apiv2/merchant/audit_qry";//审核状态查询
    public final static String WX_CONFIG_URL = "http://t-saas-mch.lepass.cn/apiv2/wechat/wxpayconfig";//微信支付参数配置
    public final static String WX_CONFIG_QRY_URL = "http://t-saas-mch.lepass.cn/apiv2/wechat/wxpayconfig_qry";//微信支付参数配置查询
    public static final String GET_URL = "http://t-saas-mch.lepass.cn/apiv2/merchant/info_qry";*/


    /*static{
        Properties prop = new Properties();
        InputStream in = LeshuaConfig.class.getResourceAsStream("/config.properties");
        try {
            prop.load(in);
            AGENT_ID = prop.getProperty("AGENT_ID").trim();
            KEY = prop.getProperty("KEY").trim();
            VERSION = prop.getProperty("VERSION").trim();
            CHARSET = prop.getProperty("CHARSET").trim();

            
            SAAS_UPLOAD_URL = prop.getProperty("SAAS_UPLOAD_URL").trim();
            SAAS_REGISTER_URL = prop.getProperty("SAAS_REGISTER_URL").trim();
            SAAS_OPEN_URL = prop.getProperty("SAAS_OPEN_URL").trim();
            SAAS_UPDATE_URL = prop.getProperty("SAAS_UPDATE_URL").trim();
            SAAS_INFOQRY_URL = prop.getProperty("SAAS_INFOQRY_URL").trim();
            WX_PAY_CONFIG_URL = prop.getProperty("WX_PAY_CONFIG_URL").trim();
            WX_PAY_CONFIG_QUERY_URL = prop.getProperty("WX_PAY_CONFIG_QUERY_URL").trim();
        } catch (IOException e) {
           log.error(e.getMessage());
        }
    }*/
}
